<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/lodop/LodopFuncs.js"></script>
<script type="text/javascript">
function myPreview2() {
	LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM')); 
	LODOP.ADD_PRINT_IMAGE(30,150,600,400,"<img border='0' src='http://www.baidu.com/img/baidu_logo.gif'/>");
	LODOP.SET_PRINT_STYLEA(1,"Stretch",1);//(可变形)扩展缩放模式
	LODOP.PREVIEW();
	};
	function myPreview3() {
	LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM')); 
	LODOP.ADD_PRINT_IMAGE(30,150,600,80,"<img border='0' src='http://www.baidu.com/img/baidu_logo.gif'/>");
	LODOP.SET_PRINT_STYLEA(1,"Stretch",2);//按原图比例(不变形)缩放模式
	LODOP.PREVIEW();
	};
//	用代码设计复杂的文本打印
	function CreateFullBill() {
	LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM')); 
	LODOP.SET_PRINT_STYLE("FontColor","#0000FF");
	LODOP.ADD_PRINT_SHAPE(2,116,43,655,373,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(1,144,44,653,1,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(1,172,44,653,1,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(0,116,143,1,56,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(0,116,488,1,56,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(0,116,574,1,372,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(0,172,166,1,282,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(0,172,415,1,282,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(1,454,44,653,1,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(0,454,130,1,34,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(0,454,483,1,34,0,1,"#800000");
	LODOP.ADD_PRINT_SHAPE(0,64,62,120,1,0,1,"#0000FF");
	LODOP.ADD_PRINT_SHAPE(3,29,62,32,32,0,4,"#0000FF");
	LODOP.ADD_PRINT_SHAPE(3,21,300,147,75,0,3,"#FF0000");
	LODOP.ADD_PRINT_SHAPE(3,26,307,132,65,0,1,"#FF0000");
	LODOP.ADD_PRINT_TEXT(33,192,408,30,"中国移动通信集团北京有限公司专用发票");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",15);
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(68,326,100,25,"发 票 联");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(29,98,84,35,"中国移动通信CHINA MOBILE");
	LODOP.ADD_PRINT_SHAPE(2,37,69,18,15,0,1,"#0000FF");
	LODOP.ADD_PRINT_SHAPE(2,40,73,10,9,0,1,"#0000FF");
	LODOP.ADD_PRINT_TEXT(70,64,117,20,"移 动 信 息 专 家");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(124,58,68,20,"客户名称");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(152,58,68,20,"手机号码");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(124,497,68,20,"受理类别");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(152,497,68,20,"合 同 号");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(465,54,68,20,"大写金额");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(465,495,104,20,"小写金额    ￥: ");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
	LODOP.ADD_PRINT_TEXT(98,56,47,20,"编号：");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
	LODOP.ADD_PRINT_TEXT(98,259,48,20,"日期：");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
	LODOP.ADD_PRINT_TEXT(97,500,71,20,"发票号码：");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
	LODOP.ADD_PRINT_TEXT(496,54,83,20,"话费帐期：");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
	LODOP.ADD_PRINT_TEXT(496,321,83,20,"营业员工号：");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
	LODOP.ADD_PRINT_TEXT(496,480,93,20,"收款单位名称：");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
	LODOP.ADD_PRINT_TEXT(226,703,27,121,"第二联发票联");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(203,21,17,195,"京地税准印八九号五百万份");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",8);
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.ADD_PRINT_TEXT(126,150,100,20,"郭德强");
	LODOP.ADD_PRINT_TEXT(151,150,100,20,"13954885188");
	LODOP.ADD_PRINT_TEXT(125,584,99,20,"发票打印(第1次)");
	LODOP.ADD_PRINT_TEXT(465,140,198,20,"陆百柒拾捌元叁角零分");
	LODOP.ADD_PRINT_TEXT(465,599,70,20,"678.30");
	LODOP.ADD_PRINT_TEXT(496,408,59,20,"H112063");
	LODOP.ADD_PRINT_TEXT(191,58,100,20,"国内漫游通话");
	LODOP.ADD_PRINT_TEXT(191,217,100,20,"584.00");
	LODOP.ADD_PRINT_TEXT(222,58,100,20,"增值业务费");
	LODOP.ADD_PRINT_TEXT(222,217,100,20,"48.30");
	LODOP.ADD_PRINT_TEXT(251,58,100,20,"代收费");
	LODOP.ADD_PRINT_TEXT(251,217,100,20,"50.00");
	LODOP.ADD_PRINT_TEXT(280,58,100,20,"优惠费");
	LODOP.ADD_PRINT_TEXT(280,217,100,20,"4.00");
	LODOP.ADD_PRINT_TEXT(98,101,150,20,"101081005747319387");
	LODOP.ADD_PRINT_TEXT(97,307,150,20,"2008年10月19日 10:28:38");
	LODOP.ADD_PRINT_TEXT(152,584,103,20,"138860016786");
	LODOP.ADD_PRINT_TEXT(95,571,112,20,"06775516");
	LODOP.SET_PRINT_STYLEA(0,"FontName","System");
	LODOP.ADD_PRINT_TEXT(76,500,71,20,"发票代码：");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#800000");
	LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
	LODOP.ADD_PRINT_TEXT(74,571,112,20,"237090742401");
	LODOP.SET_PRINT_STYLEA(0,"FontName","System");
	LODOP.SET_PRINT_STYLEA(0,"FontColor","#FF0000");
	LODOP.ADD_PRINT_TEXT(496,135,183,20,"2008年09月(20080901-20080930)");
	LODOP.ADD_PRINT_TEXT(496,572,112,20,"-王府井中心店营");
	LODOP.ADD_PRINT_TEXT(311,217,100,20,"678.30");
	LODOP.ADD_PRINT_TEXT(311,58,100,20,"费用合计");
//	LODOP.PRINT();//直接打印会出未注册标记
	LODOP.PREVIEW();
	}; 
	function printDivp(){
		var html=document.getElementById("printDiv").innerHTML;
		alert(html);
		LODOP=getLodop(document.getElementById('LODOP'),document.getElementById('LODOP_EM')); 
		LODOP.ADD_PRINT_TABLE("0%","0%","100%","50%","<table width='100%' height='100%'><tr><td  valign='top'>"+html+"</td></tr><table>");
		LODOP.PREVIEW();
	//	LODOP.PRINT();
	}
</script>
</head>
<body>
<object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="js/lodop/install_lodop32.exe"></embed>
</object>
<button onclick="myPreview2()">打印2</button>
<button onclick="myPreview3()">打印3</button>
<button onclick="CreateFullBill()">打印表单</button>
<button onclick="printDivp()">打印指定内容</button>
<table><tr><td valign="top"></td></tr></table>
<pre id="printDiv">
<pre>
fdsaf
fdsafdsf
自豪呢范德萨范德萨
fdsafdsafdsafdsa

范德萨飞洒大

范德萨范德萨
<img src="../login.jpg">
</pre>
</pre>
</body>
</html>